import React, { Component } from 'react'
import Fun from './fun'
import Class from './class'
// 在react里有类组件，函数组件
class App extends Component {
  state = {
     sex:"女"
  }
  render() {
    return (
      <div>
          {/* 单标签双标签都可以 */}
          <Fun send={this.state.sex}></Fun>
          <hr />
          <Class send={this.state.sex}></Class>
      </div>
    )
  }
}

export default App